import 'package:flutter/material.dart';
import 'package:im_flutter_sdk/im_flutter_sdk.dart';
import 'package:qunaimedical/components/wx_expression.dart';

class ChatTextBubble extends StatelessWidget {
  ChatTextBubble(this.body);

  final EMTextMessageBody body;

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.only(
        left: (13),
        right: (13),
        top: (9),
        bottom: (9),
      ),
      child: ExpressionText(
        body.content,
        TextStyle(
          color: Color.fromRGBO(51, 51, 51, 1),
          fontSize: (17),
        ),
      ),
    );
  }
}
